(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["gallery"],{"015a":function(t,e,i){"use strict";i("347d")},"1ea6":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"container",staticClass:"pswp",attrs:{"aria-hidden":"true",role:"dialog",tabindex:"-1"}},[i("div",{staticClass:"pswp__bg"}),i("div",{staticClass:"pswp__scroll-wrap"},[t._m(0),i("div",{staticClass:"pswp__ui pswp__ui--hidden"},[i("div",{staticClass:"pswp__top-bar"},[i("TMSvgIcon",{staticClass:"pswp__button pswp__button--close",attrs:{id:"close"}}),t._m(1)],1)])])])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pswp__container"},[i("div",{staticClass:"pswp__item"}),i("div",{staticClass:"pswp__item"}),i("div",{staticClass:"pswp__item"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pswp__preloader"},[i("div",{staticClass:"pswp__preloader__icn"},[i("div",{staticClass:"pswp__preloader__cut"},[i("div",{staticClass:"pswp__preloader__donut"})])])])}],a=i("4a90"),o=i("a8a8"),r=function(){return i.e("photoswipe").then(i.t.bind(null,"b24f",7))},c=function(){return i.e("photoswipe").then(i.t.bind(null,"14fd",7))},l={arrowEl:!1,bgOpacity:.7,captionEl:!1,closeOnVerticalDrag:!0,counterEl:!1,fullscreenEl:!1,history:!1,maxSpreadZoom:4,shareEl:!1,tapToClose:!0,zoomEl:!1},p={name:"TMGallery",components:{TMSvgIcon:a["a"]},props:{imagesList:{type:Array,default:null}},data:function(){return{PhotoSwipeConstructor:null,PhotoSwipeUI:null}},beforeMount:function(){this.loadPhotoSwipeUI(),this.loadPhotoSwipe()},mounted:function(){this.initImageHandlers()},methods:{loadPhotoSwipe:function(){var t=this;r().then((function(t){return t.default})).then((function(e){t.PhotoSwipeConstructor=e}))},loadPhotoSwipeUI:function(){var t=this;c().then((function(t){return t.default})).then((function(e){t.PhotoSwipeUI=e}))},createGallery:function(t){var e=this.$refs.container,i=window.innerWidth-32,s=i/t.clientWidth,n=[{h:t.clientHeight*s,src:t.getAttribute("data-src")||t.src,w:i}];return new this.PhotoSwipeConstructor(e,this.PhotoSwipeUI,n,l)},initImageHandlers:function(){var t=this;this.imagesList&&this.imagesList.forEach((function(e){e.addEventListener("click",(function(e){if(t.PhotoSwipeConstructor&&t.PhotoSwipeUI)try{t.createGallery(e.currentTarget).init()}catch(i){Object(o["a"])(i),e.currentTarget.closest("[data-gallery-root]").querySelector(".pswp").classList.remove("pswp--open")}}))}))}}},u=p,d=(i("015a"),i("2877")),h=Object(d["a"])(u,s,n,!1,null,null,null);e["default"]=h.exports},"347d":function(t,e,i){}}]);
//# sourceMappingURL=gallery.42a5862c.js.map